package org.jeecg.modules.demo.yxclosingorder.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.soOrderDetail.entity.SoOrderDetail;
import org.jeecg.modules.demo.warehouseorder.entity.WarehouseOrder;
import org.jeecg.modules.demo.yxclosingdate.entity.YxClosingDate;
import org.jeecg.modules.demo.yxclosingorder.entity.YxClosingOrder;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Description: yx_closing_order
 * @Author: jeecg-boot
 * @Date:   2022-11-16
 * @Version: V1.0
 */
public interface YxClosingOrderMapper extends BaseMapper<YxClosingOrder> {

    public String getMaxCode();

    public List<YxClosingOrder> getOrderByClosingDate(@Param("yxClosingDate") YxClosingDate yxClosingDate);

    public Map<String,BigDecimal> getJcByWhAndCname(@Param("yxClosingOrder") YxClosingOrder yxClosingOrder);

    public Map<String,BigDecimal> getJcByWhAndCnameAndDate(@Param("yxClosingOrder") YxClosingOrder yxClosingOrder);

    public List<YxClosingOrder> getCmMx(Page<YxClosingOrder> page,@Param("closingOrder") YxClosingOrder closingOrder);

    public List<SoOrderDetail> getCkOrder(@Param("closingOrder") YxClosingOrder closingOrder);

    public List<WarehouseOrder> getRkAndSy(@Param("closingOrder") YxClosingOrder closingOrder);

}
